import http from "@/api/request.js";
//失效了

const bastUrl = "/xxl/sysUser/";

export const queryAllUser = () => {
  return http({
    url: `${bastUrl}queryAllUser`,
    method: "get",
  });
};

export const addUser = (data) => {
  return http({
    url: `${bastUrl}saveUser`,
    method: "post",
    data,
  });
};

export const deleteUser = (data) => {
  return http({
    url: `${bastUrl}deleteUser`,
    method: "post",
    data,
  });
};

export const saveManRole = (data) => {
  return http({
    url: `/xxl/userRole/saveManRole`,
    method: "post",
    data,
  });
};
